package org.yzh.commons.util;

public enum  ResultCode {

    SUCCESS(0, "请求成功"),
    ERROR(-1, "请求失败"),
    WARN(-2, "网络异常，请稍后重试");


    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
